package pers.lonestar.framework.utils.support.utils;

public class BooleanUtil {

    private static final String TRUE_NUMBER = "1";

    private BooleanUtil() {
    }

    /**
     * String to boolean
     *
     * @param str
     * @return
     */
    public static Boolean valueOf(String str) {
        if (TRUE_NUMBER.equals(str)) {
            return Boolean.TRUE;
        } else {
            return Boolean.FALSE;
        }
    }

}
